package com.iiapk.gridview.database;

import java.util.ArrayList;
import java.util.List;

import com.iiapk.gridview.R;

public class DataSourceTest {
	
	private static int ItemCount = 8;
	
	private static String[] Items_text = { "应用推荐", "美女美图", "星座星缘", "财经天下", "头条新闻",
			"天天创意", "娱乐八卦", "大名人" };
	
	public static int[] Items_icon = {R.drawable.c_love_channel,R.drawable.c_technoledge, R.drawable.c_user
		,R.drawable.c_entertainment,R.drawable.c_financial,R.drawable.c_technoledge,R.drawable.c_love_channel
		,R.drawable.c_user};
	
	private List<GridItem> list = new ArrayList<GridItem>();
	
	public DataSourceTest(){
		for(int i=0;i<ItemCount;i++){
			GridItem item = new GridItem();
			item.text=Items_text[i];
			item.icon=Items_icon[i];
			list.add(item);
		}
	}
	
	public List<GridItem> getList() {
		return list;
	}

}
